﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TaoPortal.Areas.Admin.Models;

namespace TaoPortal.Areas.Admin.Controllers
{
    public class PluginController : Controller
    {
        //
        // GET: /Admin/Plugin/

        public ActionResult Index()
        {
            PluginModel model = new PluginModel();
            model.InitPluginClass();
            return View(model);
        }

        public ActionResult AddPlugin()
        {
            return View();
        }

        [HttpPost]
        public ActionResult AddPlugin(PluginModel model)
        {
            return View();
        }

        public ActionResult EditPlugin()
        {
            return View();
        }

        [HttpPost]
        public ActionResult EditPlugin(PluginModel model)
        {
            return View();
        }

        [HttpPost]
        public ActionResult Delete(string id)
        {
            return Content("true");
        }
    }
}
